/**
* @file    hi_hal_uartmsg.h
* @brief   uart message struct and interface declaration
*
* Copyright (C), 2016-2019, Hisilicon Tech. Co., Ltd.
*
* @author    IP Camera Reference Develop Team
* @date       2018/12/11
* @version   1.0

*/


#ifndef __HI_HAL_UARTMSG_H__
#define __HI_HAL_UARTMSG_H__



#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif  /* __cplusplus */


typedef HI_S32 (*PFN_HI_HAL_UARTMSG_RCV_CALLBACK)(HI_U8 * pBuf, HI_U32 u32Len);

HI_S32 HI_HAL_UARTMSG_Init(PFN_HI_HAL_UARTMSG_RCV_CALLBACK pRCVCallback);
HI_S32 HI_HAL_UARTMSG_Deinit(HI_VOID);
HI_S32 HI_HAL_UARTMSG_SendBuf(HI_U8 * pBuf, HI_U32 u32Len);

HI_S32 HI_HAL_UART_SetPause(char bPause);
HI_S32 HI_HAL_UART_IsPause(void);



#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

#endif /* __HI_HAL_MCUUART_H__ */
